package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@Transactional
public interface EmplyeeService extends IService<Employee> {
    R<Employee> EmployeeLogin(Employee employee, HttpSession session);


    R EmployeeLogOut(HttpSession session);


    R addEmployee(Employee employee, HttpSession session);

    R pageEmployee(Integer page, Integer pageSize, String name);

    R updateEmployee(Employee employee, HttpSession session);

    R updateEmployeeSelect(Long id);

    R exportEmployee(HttpServletResponse response);
}
